<!DOCTYPE HTML>
<html>
  <head>
	{% block meta %}
	<link rel="stylesheet" href="/static/base.css" type="text/css"/>
	<script type="text/javascript" src="/static/jquery-1.4.4.min.js"></script>

	<link rel="stylesheet" href="/static/thickbox/thickbox.css" type="text/css"/>
	<script type="text/javascript" src="/static/thickbox/thickbox.js"></script>
	{% end %}
	<title>{% block title %}{{ handler.settings["site_title"] }}{% end %}</title>
  </head>
  <body style="background-image:none">
	<div class="wrapper">

	  <div class="header">
	  {% block header %}
		header
	  {% end %}
	  </div>
	  
	  <div class="body">
		<div class="seStandard">
		  {% if not login %}
		{% block menu %}
		  <div class="aeNavigation clearfix">
			<ul>
			  <li id="index"><a href="/" target="_blank">Index</a></li>
			  <li id="dashboard"><a href="/a/dashboard/">Dashboard</a></li>
			  <li id="post"><a href="/a/post/">Post</a></li>
			  <li id="posts"><a href="/a/posts/">Posts</a></li>
			  <li id="upload"><a href="/a/upload/">Upload</a></li>
			  <li id="files"><a href="/a/files/">Files</a></li>
			  <li id="setting"><a href="/a/setting/">Setting</a></li>
			  <li id="fix"><a href="/a/fix/">Fix</a> </li>
			  <li><a href="/logout">Logout</a></li>
			</ul>
		  </div>
		{% end %}
		  {% end %}
		
		{% block imenu %}{% end %}
		{% block body %}{% end %}
		</div>
	  </div>
	  
	  <div class="footer">
	  {% block footer %}
		@bcore
	  {% end %}
	  </div>

	</div>

	<script type="text/javascript">
	  var cats = new Array();
	  function select_cat(o,key){
	  if(cats[key]!=undefined){
	  cats[key] = Math.abs(cats[key]-1);
	  }else{
	  cats[key] = 1;
	  }
	  if(cats[key]==1){
	  $(o).css("background","#069");
	  $(o).css("color","#fff");
	  }else{
	  $(o).css("background","");
	  $(o).css("color","");
	  }
	  var _cats = new Array();
	  for(var k in cats){
	  if(cats[k]==1){
	  _cats.push(k);
	  }
	  }
	  $("#cats").val(_cats.join());
	  }

	  {% block initscript %}
	  {% end %}
	</script>

  </body>
</html>
